from likeshop_project.BASE.myBase import Tools
from likeshop_project.API.login_api import login_module

class getDefaultAddress_module(Tools):
    path = "api/user_address/getdefault"

    def getDefaultAddress_action(self):
        url = self.host_url + self.path

        head = login_module(session=self.session).get_head()
        msg = self.session.get(url=url, headers=head)
        return msg.json()
